package com.isnmp.nms.framework.discover.rstype;

import com.isnmp.common.snmp.mib.MibIPRouterEntry;
import com.isnmp.nms.framework.discover.ResourceInfo;

public class RouterType extends SNMPTableBasicMothType {
    public RouterType() {
        setResoureTypeName(Messages.getString("RouterType.0"));
    }

    public Class getORMappingClass() {
        return MibIPRouterEntry.class;
    }

    public String getResourceSearchMoth() {
        return Messages.getString("RouterType.1");
    }

    public ResourceInfo tableMibInfoToResouce(Object paramObject) {
        ResourceInfo localResourceInfo = new ResourceInfo();
        MibIPRouterEntry localMibIPRouterEntry = (MibIPRouterEntry) paramObject;
        localResourceInfo.setResourceRSIDValue(localMibIPRouterEntry.getIpRouteDest());
        localResourceInfo.setResourceName(localMibIPRouterEntry.getIpRouteDest());
        localResourceInfo.setResourceParam(Messages.getString("RouterType.3") + localMibIPRouterEntry.getIpRouteNextHop());
        localResourceInfo.setResourceDesc(Messages.getString("RouterType.4") + localMibIPRouterEntry.getIpRouteIfIndex());
        return localResourceInfo;
    }
}